﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Aliyeye.Car.Net.UI.StatisticsModel;
using Aliyeye.Car.Net.UI.OrderModel;
using Aliyeye.Car.Net.UI.SystemHelp;
using Aliyeye.Car.Net.UI.Common;

namespace Aliyeye.Car.Net.UI.SystemAdmin
{
    public partial class SystemAdminStatistics : BgForm
    {
        public SystemAdminStatistics()
        {
            InitializeComponent();
            //menuBlueLargeButton4.Visible = false;
            //menuBlueLargeButton7.Visible = false;
            //menuBlueLargeButton5.Visible = false;
        }

        //按驾驶员统计
        private void menuBlueLargeButton1_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            StatisticsByDriver form = new StatisticsByDriver();
            form.ShowDialog();
        }

        //按车辆统计
        private void menuBlueLargeButton3_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            StatisticsByCar form = new StatisticsByCar();
            form.ShowDialog();
        }

        //应收款到期统计
        private void menuBlueLargeButton9_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            StatisticsByReceivableDue form = new StatisticsByReceivableDue();
            form.ShowDialog();
        }

        //按客户统计
        private void menuBlueLargeButton2_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            StatisticsByCustomer form = new StatisticsByCustomer();
            form.ShowDialog();
        }

        
    }
}
